package com.imufe.chemicalenterprisedangerwarning.entity.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 检查内容表
 * </p>
 *
 * @author BaiBan
 * @since 2022-10-21
 */
@Getter
@Setter
@TableName("check_content")
@ApiModel(value = "CheckContentPO对象", description = "检查内容表")
public class CheckContentPO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("检查编号")
    private Long checkId;

    @ApiModelProperty("模块条目编号")
    private Long unitItemId;

    @ApiModelProperty("检查方式")
    private Byte method;

    @ApiModelProperty("现场实际情况")
    private String scene;

    @ApiModelProperty("是否符合")
    @TableField("is_compliance")
    private Boolean compliance;

    @ApiModelProperty("是否删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
